<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page errorPage="../error/404.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<title>修改网站信息</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <script type="text/javascript" src="/js/common.js"></script>   
     <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>   
   <script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/kindeditor-all-min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/lang/zh_CN.js"></script>

<style type="text/css">
.layui-form-item .layui-inline {
	width: 33.333%;
	float: left;
	margin-right: 0;
}

@media ( max-width :1240px) {
	.layui-form-item .layui-inline {
		width: 100%;
		float: none;
	}
}
.imgUrl{

src:"";
}
</style>
</head>
<body class="childrenBody">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend style="text-align: center">${admin.realname}博客</legend>
</fieldset>

	<form class="layui-form" style="width: 80%;" id="Web" >
		<!-- 管理员id -->
		<input type="hidden" name="wid"  id="wid" value="${web.wid}"/>
		<div class="layui-form-item">
			<label class="layui-form-label">网站标题</label>
			<div class="layui-input-block">
				<input type="text" name="wtitle" id="wtitle" class="layui-input userName"
					lay-verify="required" value="${web.wtitle}" placeholder="请输入网站名称" >
			</div>
			</div>		
		
			<div class="layui-form-item">
			<label class="layui-form-label">网站描述</label>
			<div class="layui-input-block">
			     
				             <textarea placeholder="请输入网站描述" class="layui-textarea" lay-verify="required" name="wdes" id="wdes" lay-verify="simpledes" >${web.wdes}</textarea>

			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">网站域名</label>
			<div class="layui-input-block">
				<input type="text" id="wurl" name="wurl" class="layui-input userName" value="${web.wurl}" lay-verify="required" placeholder="请输入网站域名" >
			</div>
		</div> 
		
		
		
		<div class="layui-form-item">
			<label class="layui-form-label">description</label>
			<div class="layui-input-block">
				<input type="text" id="wdescription" name="wdescription" value="${web.wdescription}" class="layui-input userName" lay-verify="required" placeholder="请输入META描述" >
			</div>
		</div> 
	
	<div class="layui-form-item">
			<label class="layui-form-label">keywords</label>
			<div class="layui-input-block">
				<input type="text" id="wkeywords" name="wkeywords" class="layui-input userName" value="${web.wkeywords}" lay-verify="required" placeholder="请输入META关键词" >
			</div>
		</div> 
	
	<div class="layui-form-item">
			<label class="layui-form-label">版权信息</label>
			<div class="layui-input-block">
				<input type="text" id="wcopyright" name="wcopyright" class="layui-input userName" value="${web.wcopyright}" lay-verify="required" placeholder="请输入版权信息" >
			</div>
		</div> 
		
		<div class="layui-form-item">
			<label class="layui-form-label">备案号</label>
			<div class="layui-input-block">
				<input type="text" id="wrecord" name="wrecord" class="layui-input userName" value="${web.wrecord}" lay-verify="required" placeholder="请输入备案号" >
			</div>
		</div> 
		
		<div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">网站logo:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test3" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                         <input type="text" name="wicon" id="wicon" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" > 
                                            <img alt="" src="?" onerror="this.src='/images/nopic-107.png'; this.title='图片未找到.'" name="showimg" id="showimg" style="width:100px;height:100px;">
                                           
                                           <img alt="" src="${web.wicon}" style="width:100px;height:100px;">
                                          
                                </div>
                        
                            </div>
                            </div>
                            	<div class="layui-form-item">
			<label class="layui-form-label">底部左侧信息</label>
			<div class="layui-input-block">
			     
				             <textarea placeholder="请输入底部左侧信息" class="layui-textarea" lay-verify="required" name="wleftinfo" id="wleftinfo" lay-verify="simpledes" >${web.wleftinfo}</textarea>

			</div>
		</div>
			<div class="layui-form-item">
			<label class="layui-form-label">底部右侧信息</label>
			<div class="layui-input-block">
			     
				             <textarea placeholder="请输入底部右侧信息" class="layui-textarea" lay-verify="required" name="wright" id="wright" lay-verify="simpledes" >${web.wright}</textarea>

			</div>
		</div>
	 
	 	<div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">微信公众号:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test4" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                         <input type="text" name="wxgzh" id="wxgzh" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" > 
                                            <img alt="" src="?" onerror="this.src='/images/nopic-107.png'; this.title='图片未找到.'" name="showimg2" id="showimg2" style="width:100px;height:100px;">
                                           
                                            <img alt="" src="${web.wxgzh}" style="width:100px;height:100px;">
                                </div>
                        
                            </div>
                            </div>
                            
                            	<div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">微信:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test5" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                         <input type="text" name="wxxcx" id="wxxcx" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" > 
                                            <img alt="" src="?" onerror="this.src='/images/nopic-107.png'; this.title='图片未找到.'" name="showimg3" id="showimg3" style="width:100px;height:100px;">
                                           <img alt="" src="${web.wxxcx}" style="width:100px;height:100px;">
                                          
                                </div>
                        
                            </div>
                            </div>
                            
                            	<div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">微信收款码:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test6" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                         <input type="text" name="wx" id="wx" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" > 
                                            <img alt="" src="?" onerror="this.src='/images/nopic-107.png'; this.title='图片未找到.'" name="showimg4" id="showimg4" style="width:100px;height:100px;">
                                           
                                                                                     <img alt="" src="${web.wx}" style="width:100px;height:100px;">
                                          
                                </div>
                        
                            </div>
                            </div>
                            
                            	<div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">支付宝收款码:</label>
                                <div class="layui-input-inline">
                                    <input type="file" name="pic" id="test7" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input">
                                         <input type="text" name="wzcx" id="wzcx" placeholder="图片地址" lay-verify="readonly"
                                           autocomplete="off" class="layui-input" > 
                                            <img alt="" src="?" onerror="this.src='/images/nopic-107.png'; this.title='图片未找到.'" name="showimg5" id="showimg5" style="width:100px;height:100px;">
                                           
                                                                                                                               <img alt="" src="${web.wzcx}" style="width:100px;height:100px;">
                                          
                                </div>
                        
                            </div>
                            </div>
	 
	 
	 
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="editWeb">立即保存</button>
			</div>
		</div>
	</form>
	<script type="text/javascript" src="/layui/layui.js"></script>
	<script type="text/javascript" src="/js/web/editWeb.js"></script>
</body>
</html>